import request from '@/utils/request'

// 文章查询
export function filefindall(data) {
  return request({
    url: '/bbs/bbs/findbbsarticle/',
    method: 'post',
    data
  })
}

// 删除文章
export function delSpecialist(fileId) {
  return request({
    url: `/bbs/bbs/removeBbsArticle/${fileId}`,
    method: 'post'
  })
}

//发布文章
export function addSpecialist(data) {
  return request({
    url: `/bbs/bbs/insertBbsArticle/`,
    method: 'post',
    data
  })
}



//取消关注
export function deleteattention (attentionId) {
  return request({
    url: `/bbs/bbs/removebbsattention/${attentionId}`,
    method: 'post'
  })
}
//查询关注
export function findattentionall (data) {
  return request({
    url: `/bbs/bbs/findbbsattentionall/`,
    method: 'post',
    data
  })
}
//添加关注
export function  insertattention(data) {
  return request({
    url: `/bbs/bbs/insertbbsattention/`,
    method: 'post',
    data
  })
}



//取消收藏
export function delcollect (collectId) {
  return request({
    url: `/bbs/bbs/removecollect/${collectId}`,
    method: 'post'
  })
}
//查询收藏
export function fincollectdall (data) {
  return request({
    url: `/bbs/bbs/findcollectall/`,
    method: 'post',
    data
  })
}
//添加收藏
export function  insertcollect(data) {
  return request({
    url: `/bbs/bbs/insertcollect/`,
    method: 'post',
    data
  })
}



//取消评论
export function delcomment (collectId) {
  return request({
    url: `/bbs/bbs/removecomment/${collectId}`,
    method: 'post'
  })
}
//添加评论
export function  insertcomment(data) {
  return request({
    url: `/bbs/bbs/insertbbscomment/`,
    method: 'post',
    data
  })
}
//查询评论
export function findcomment (data) {
  return request({
    url: `/bbs/bbs/findcommentall/`,
    method: 'post',
    data
  })
}


//查询转发
export function findtransmit (data) {
  return request({
    url: `/bbs/bbs/findbbsTransmitall/`,
    method: 'post',
    data
  })
}
//取消转发
export function deltransmit (transmitId) {
  return request({
    url: `/bbs/bbs/removebbsTransmit/${transmitId}`,
    method: 'post'
  })
}
//添加转发
export function  addtransmit(data) {
  return request({
    url: `/bbs/bbs/insertbbstransmit/`,
    method: 'post',
    data
  })
}


//查询明感词
export function findTbBbsSensitiveall (pagenum,pagesize) {
  return request({
    url: `/bbs/bbs/findTbBbsSensitiveall/${pagenum}/${pagesize}`,
    method: 'post',
  })
}
//取消转发
export function removeTbBbsSensitive (transmitId) {
  return request({
    url: `/bbs/bbs/removeTbBbsSensitive/${transmitId}`,
    method: 'post'
  })
}
//添加转发
export function  insertTbBbsSensitive(data) {
  return request({
    url: `/bbs/bbs/insertTbBbsSensitive/`,
    method: 'post',
    data
  })
}


//审核
//查询
export function findaudit (pagenum,pagesize) {
  return request({
    url: `/bbs/bbs/findaudit/${pagenum}/${pagesize}`,
    method: 'post',
  })
}
//取消
//修改审核状态
export function  addaudit(data) {
  return request({
    url: `/bbs/bbs/updateaudit`,
    method: 'post',
    data
  })
}
